﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Data;
using System.Data.SqlClient;

namespace DAO { 

	public enum DataProviderAction{
		Insert = 0,
		Edit = 1,
		Delete = 2,
		Active = 3
	}

	public  class DataContext:IDisposable{
		public DataContext() {
		}

		private String m_connecString=String.Empty;

		public DataContext(String connecString) {
			m_connecString = connecString;
		}

		public BANDAO BANs{
			get { return new BANDAO(m_connecString); }
		}

		public BANTHUONGVUDAO BANTHUONGVUs{
			get { return new BANTHUONGVUDAO(m_connecString); }
		}

		public CHUCVUDAO CHUCVUs{
			get { return new CHUCVUDAO(m_connecString); }
		}

		public CTGIAOLYDAO CTGIAOLYs{
			get { return new CTGIAOLYDAO(m_connecString); }
		}

		public CTHANHDAODAO CTHANHDAOs{
			get { return new CTHANHDAODAO(m_connecString); }
		}

		public DAOPHAPDAO DAOPHAPs{
			get { return new DAOPHAPDAO(m_connecString); }
		}

		public GIAOLYDAO GIAOLYs{
			get { return new GIAOLYDAO(m_connecString); }
		}

		public KNANGNNGUDAO KNANGNNGUs{
			get { return new KNANGNNGUDAO(m_connecString); }
		}

		public KY_NANG_MEMDAO KY_NANG_MEMs{
			get { return new KY_NANG_MEMDAO(m_connecString); }
		}

		public KY_NANG_THDAO KY_NANG_THs{
			get { return new KY_NANG_THDAO(m_connecString); }
		}

		public NGOAINGUDAO NGOAINGUs{
			get { return new NGOAINGUDAO(m_connecString); }
		}

		public NHANVIENDAO NHANVIENs{
			get { return new NHANVIENDAO(m_connecString); }
		}

		public QTDAOPHAPDAO QTDAOPHAPs{
			get { return new QTDAOPHAPDAO(m_connecString); }
		}

		public QTHANHDAODAO QTHANHDAOs{
			get { return new QTHANHDAODAO(m_connecString); }
		}

		public QTHOCTAPDAO QTHOCTAPs{
			get { return new QTHOCTAPDAO(m_connecString); }
		}

		public QUANHEDAO QUANHEs{
			get { return new QUANHEDAO(m_connecString); }
		}

		public THANNHANDAO THANNHANs{
			get { return new THANNHANDAO(m_connecString); }
		}

		public TRINHDODAO TRINHDOs{
			get { return new TRINHDODAO(m_connecString); }
		}

		public VUDAO VUs{
			get { return new VUDAO(m_connecString); }
		}
        public ConfigDAO Configs
        {
            get { return new ConfigDAO(m_connecString); }
        }

        public Group_userDAO Group_users
        {
            get { return new Group_userDAO(m_connecString); }
        }

        public GroupchatDAO Groupchats
        {
            get { return new GroupchatDAO(m_connecString); }
        }

        public ItemDAO Items
        {
            get { return new ItemDAO(m_connecString); }
        }

        public MenuDAO Menus
        {
            get { return new MenuDAO(m_connecString); }
        }

        public MessageDAO Messages
        {
            get { return new MessageDAO(m_connecString); }
        }

        public UserDAO Users
        {
            get { return new UserDAO(m_connecString); }
        }
        public DetailQuylieuDAO DetailQuylieus
        {
            get { return new DetailQuylieuDAO(m_connecString); }
        }

        public QuanDAO Quans
        {
            get { return new QuanDAO(m_connecString); }
        }

        public QuiLieuDAO QuiLieus
        {
            get { return new QuiLieuDAO(m_connecString); }
        }

        public TinhDAO Tinhs
        {
            get { return new TinhDAO(m_connecString); }
        }

        public TraikyDAO Traikys
        {
            get { return new TraikyDAO(m_connecString); }
        }
        public void Dispose()
        {
            
        }
    }
}
